package com.eascs.crm.nsEditDetail.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import com.eascs.admin.common.controller.BaseMasterViewController;
import com.eascs.app.log.Logger;
import com.eascs.app.log.LoggerFactory;
import com.eascs.crm.nsEditDetail.entity.ManagementInfoEntity;
import com.eascs.crm.nsEditDetail.service.ManagementInfoService;
import com.eascs.site.view.ViewContext;

@Controller
@RequestMapping("/managementInfoView")
public class ManagementInfoViewController extends BaseMasterViewController {
	private final Logger logger = LoggerFactory.getLogger(ManagementInfoViewController.class);
	@Autowired
	private ManagementInfoService managementInfoService;

	@RequestMapping(value = "/view", method = RequestMethod.GET)
	public String addIndex(String loanapplyNo) {
		ManagementInfoEntity managementInfo = managementInfoService.getByLoanNo(loanapplyNo);
		ViewContext.put("managementInfo", managementInfo);
		return "nsEditDetail/management_info_view";
	}
}
